//
//  MusicControlIntents.swift
//  TimMusic
//
//  Created by nkl on 2024/10/21.
//

import Foundation
import AppIntents

@available(iOS 16, *)
struct MusicClickIntent: AppIntent {
    
    static var title: LocalizedStringResource = "MusicClickIntent"

    // 定义意图行为
    func perform() async throws -> some IntentResult {
        // 这里处理点击事件，比如更新数据或执行任务
        print("Widget clicked, intent executed")
        
        return .result()
    }
}
